package org.dromara.run.service;

import org.dromara.run.domain.Score;
import org.dromara.run.domain.bo.ScheduleBo;
import org.dromara.run.domain.vo.ScoreVo;
import org.dromara.run.domain.bo.ScoreBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 阳光跑成绩表Service接口
 *
 * @author chl
 * @date 2024-08-30
 */
public interface IScoreService {

    /**
     * 查询阳光跑成绩表
     */
    ScoreVo queryById(Long scoreId);

    /**
     * 查询阳光跑成绩表列表
     */
    TableDataInfo<ScoreVo> queryPageList(ScoreBo bo, PageQuery pageQuery);

    /**
     * 查询阳光跑成绩表列表
     */
    List<ScoreVo> queryList(ScoreBo bo);

    /**
     * 新增阳光跑成绩表
     */
    Boolean insertByBo(ScoreBo bo);

    /**
     * 修改阳光跑成绩表
     */
    Boolean updateByBo(ScoreBo bo);

    /**
     * 校验并批量删除阳光跑成绩表信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    Boolean bachCreteScore(ScheduleBo bo);

    Boolean deleteWithBo(ScoreBo bo);

    ScoreVo selectScoreInfo(ScoreBo bo);
}
